#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int convertInteger(int A, int B) {
    int tmp = A ^ B;
    int count = 0;
    int i = 0;
    for (i = 0; i < 32; i++)
    {
        if ((tmp >> i) & 1 == 1)
        {
            count++;
        }
    }
    return count;
}

int main()
{
    int a = 0;
    int b = 0;
    scanf("%d %d", &a, &b);
    int n = convertInteger(a, b);
    printf("%d", n);
    return 0;
}